Miscellaneous Routines
Table of Contents

Random stuff


  • proc cleanup()   
  • proc delete_instance( object obj )   
  • func find_window (integer id, atom parent)   
  • func get_key_state( integer keycode )   
  • func get_sys_color( atom color )   
  • func get_sys_metric( integer metric )   
  • proc launch_default_browser( sequence url )   
  • func message_box( sequence text, sequence title, atom ok )   
  • func mkdir( sequence directory, object perm, integer flags )   
  • proc wxMain( atom topWindow )   
  • proc wx_execute( sequence command, integer flag )   
  • proc wx_shell( sequence command )   

    Miscellaneous Routines
    Table of Contents

    [proc]
    cleanup
    ()

    Category: Miscellaneous Routines

    This cleans up internal wxWidgets memory. wxMain() automatically calls this before it exits. If you do not use wxMain(), then you should manually call cleanup() before your app exits.

    See Also: delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [proc]
    delete_instance
    ( object obj )

    Category: Miscellaneous Routines

    See Also: cleanup, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    find_window
    (integer id, atom parent)

    Category: Miscellaneous Routines

    Returns the window identified by its id and parent.

    See Also: cleanup, delete_instance, get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    get_key_state
    ( integer keycode )

    Category: Miscellaneous Routines

    Returns 1 if specified key (see Key Codes for a list of codes to use) is currently pressed down.

    See Also: cleanup, delete_instance, find_window , get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    get_sys_color
    ( atom color )

    Returns: pointer to wxColour

    Category: Miscellaneous Routines

    Available system colors are:

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    get_sys_metric
    ( integer metric )

    Returns: atom

    Category: Miscellaneous Routines

    Available metrics are:

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, launch_default_browser, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [proc]
    launch_default_browser
    ( sequence url )

    Category: Miscellaneous Routines

    Launches the user's default browser to open the specified url.

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, message_box, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    message_box
    ( sequence text, sequence title, atom ok )

    Category: Miscellaneous Routines

    Creates a message box dialog, with style ok. Allowable styles are:

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, mkdir, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [func]
    mkdir
    ( sequence directory, object perm, integer flags )

    Category: Miscellaneous Routines

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, wxMain, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [proc]
    wxMain
    ( atom topWindow )

    Category: Miscellaneous Routines

    This starts the event loop and your main application.

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wx_execute, wx_shell


    Miscellaneous Routines
    Table of Contents

    [proc]
    wx_execute
    ( sequence command, integer flag )

    Category: Miscellaneous Routines

    flag can be a combination of:

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_shell


    Miscellaneous Routines
    Table of Contents

    [proc]
    wx_shell
    ( sequence command )

    Category: Miscellaneous Routines

    See Also: cleanup, delete_instance, find_window , get_key_state, get_sys_color, get_sys_metric, launch_default_browser, message_box, mkdir, wxMain, wx_execute